﻿<template>
    <div class=" brand">

        <el-form>
            <table border="1" style="text-align: center  ; border-collapse: collapse">
                <tr>
                    <td colspan="2" style="width: 800px;height: 50px">活动名称：
                        <el-input type="text"
                                  v-model="MarketingInfo.marketingName"
                                  style="width: 300px"
                                  maxlength="20" show-word-limit>

                        </el-input>
                    </td>
                    <td style="width: 800px;height: 50px" colspan="2">活动日期：
                        <el-date-picker v-model="MarketingInfo.marketingDate" type="datetime"
                                        placeholder="选择日期时间">
                        </el-date-picker>
                    </td>
                </tr>
                <tr>
                    <td colspan="4" style="height: 50px">
                        <el-button round type="primary" @click="selectedGift = true">选择赠品</el-button>
                    </td>
                </tr>
                <tr>
                    <td colspan="3">
                        <el-table :data="produckInfo" style="width: 100%" >
                            <el-table-column fixed prop="id" label="序号" width="150"></el-table-column>
                            <el-table-column prop="promotionName" label="赠品名字" width="150"></el-table-column>
                            <el-table-column prop="promotionStarttime" label="赠品型号" width="150"></el-table-column>
                            <el-table-column prop="goodName" label="赠品颜色" width="150"></el-table-column>
                            <el-table-column prop="promotionPrice" label="赠品数量" width="150"></el-table-column>
                            <!--<el-table-column prop="priceTaketime" label="活动赠品数量" width="200"></el-table-column>-->
                            <el-table-column prop="handle" label="操作" width="150">
                                <template slot-scope="scope">
                                    <el-button round type="warning" icon="el-icon-edit" size="mini">选择</el-button>
                                </template>
                            </el-table-column>
                        </el-table>
                    </td>
                    <td colspan="1">
                        <template >赠品数量：
                            <el-input v-model="MarketingInfo.promotionGiftNum" placeholder="请输入" style="width: 170px">
                            </el-input>
                        </template>
                    </td>
                </tr>
                <tr>
                    <td colspan="4" style="height: 50px">领取方式：
                        <el-select v-model="MarketingInfo.rewardWay" placeholder="请选择">
                            <el-option label="现场领取" :value="1"></el-option>
                            <el-option label="邮寄" :value="2"></el-option>
                        </el-select>
                    </td>
                </tr>
                <tr>
                    <td colspan="4">备注意见：
                        <el-input type="textarea" v-model="MarketingInfo.marketingName"
                                  style="width: 400px"
                                  maxlength="200" show-word-limit
                                  :rows="4"></el-input>
                    </td>
                </tr>
                <tr>
                    <td colspan="4" style="height: 50px">
                        <el-button round type="primary" @click="">保存</el-button>
                        <el-button round type="info" @click="backtrack">返回</el-button>
                    </td>
                </tr>

            </table>
        </el-form>


        <div>
            <el-dialog title="赠品选择" :visible.sync="selectedGift" findGood>
                <!--<div class="good">-->
                <!--<div class="good_head">-->
                <!--<el-form :inline="true">-->
                <!--<el-form-item label="赠品名称：">-->
                <!--<el-input v-model="findGoodInfo.goodName" placeholder="商品名称"-->
                <!--style="width: 200px"></el-input>-->
                <!--</el-form-item>-->

                <!--<el-form-item label="赠品型号：">-->
                <!--<el-input v-model="findGoodInfo.goodModel" placeholder="商品型号"-->
                <!--style="width: 200px"></el-input>-->
                <!--</el-form-item>-->

                <!--<el-form-item label="赠品颜色：">-->
                <!--<el-input v-model="findGoodInfo.goodColour" placeholder="商品颜色"-->
                <!--style="width: 200px"></el-input>-->
                <!--</el-form-item>-->

                <!--<el-form-item label="赠品品牌：">-->
                <!--<el-input v-model="findGoodInfo.goodBrandid" placeholder="商品品牌"-->
                <!--style="width: 200px"></el-input>-->
                <!--</el-form-item>-->
                <!--<br>-->

                <!--<el-form-item>-->
                <!--<el-button round type="primary" @click="findGood">查询</el-button>-->
                <!--<el-button round type="primary" @click="restd">重置</el-button>-->
                <!--</el-form-item>-->
                <!--</el-form>-->
                <!--</div>-->

                <!--<div >-->
                <!--<el-table :data="giftInfo2" height="350px" style="align-content: center">-->
                <!--<el-table-column fixed prop="goodId" label="序号" width="80"></el-table-column>-->
                <!--<el-table-column prop="goodName" label="赠品名字" width="150"></el-table-column>-->
                <!--<el-table-column prop="promotionStarttime" label="赠品类型" width="150"></el-table-column>-->
                <!--<el-table-column prop="goodMarketprice" label="赠品单价" width="150"></el-table-column>-->
                <!--<el-table-column prop="goodBrandid" label="赠品品牌" width="120"></el-table-column>-->
                <!--<el-table-column prop="goodModel" label="赠品型号" width="150"></el-table-column>-->
                <!--<el-table-column prop="goodSum" label="赠品数量" width="120"></el-table-column>-->
                <!--<el-table-column prop="goodColorid" label="赠品颜色" width="120"></el-table-column>-->
                <!--<el-table-column fixed="right" prop="handle" label="操作" width="120">-->
                <!--<template v-slot="indexid">-->
                <!--<el-button round type="primary" icon="el-icon-document-copy" size="mini"-->
                <!--@click="affirm(indexid.row.giftId)">选择-->
                <!--</el-button>-->
                <!--</template>-->
                <!--</el-table-column>-->
                <!--</el-table>-->
                <!--</div>-->

                <!--<div class="good_page">-->
                <!--<el-pagination background-->
                <!--:current-page="giftInfo.current"-->
                <!--:page-size="giftInfo.size"-->
                <!--layout="prev, pager, next"-->
                <!--@current-change="pagefindgood"-->
                <!--:total="totalPage">-->
                <!--</el-pagination>-->
                <!--</div>-->
                <!--<div slot="footer" class="good_butt">-->
                <!--<el-button type="primary" @click="giftInfo = false">返 回</el-button>-->
                <!--</div>-->
                <!--</div>-->
            </el-dialog>
        </div>
    </div>


</template>

<script>
    import brand from './MarketingApply'

    export default brand;
</script>

<style scoped lang="sass">
    @import "MarketingApply"
</style>